
<form action="/<?php echo AppController::APP_NAME?>/Users/save" method="post" id="form">

	<fieldset>
	    <legend>
			<h4>Nuovo utente</h4>
	    </legend>
	    <label>Username / Email</label> <input type="text" name="User[username]" placeholder="Username">
	    <label>Gruppo</label>
		<select name='User[group_id]'>
			<option value=''></option>
			<?foreach ($groups as $key => $group) {?>
		  			<option value='<? echo $key?>' ?><? echo $group ?></option>
			<? } ?> 
		</select> 
	    <label>Stato</label>
		<select name='User[stato]'>
			<option value=''></option>
			<?foreach ($stati as $key => $stato) {?>
		  			<option value='<? echo $key?>'><? echo $stato ?></option>
			<? } ?> 
		</select> 
		<p>
			<a href='/<?php echo AppController::APP_NAME?>/Users/add' class="btn" ><i class='icon-plus'></i></a>
			<button type="submit" class="btn btn-primary"><i class='icon-ok'></i></button>
		</p>
	</fieldset>

</form>
